﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using BLL;
using DAL;

public partial class ucLeftSideBar :BaseUserControl
{

    protected void Page_Load(object sender, EventArgs e)
    {
        /* Hector: Feb, 01, 2012 set PENDING this function
        int top = int.Parse(ConfigurationManager.AppSettings["SoTinMoiBenTrai"]);
        HtmlGenericControl div=new HtmlGenericControl();
        div.InnerHtml = "<h2></h2>";
        news.Controls.Add(div);
        foreach(TinTuc tt in TTBLL.LayTop(top))
        {
            HtmlGenericControl divitem=new HtmlGenericControl();
            divitem.InnerHtml="<div class=\"newsstory\">"
            + "<p>"
            + "<span class=\"date\">" + tt.ThoiDiem.ToString("dd/MM/yyyy") + "</span><b>" + tt.TieuDe + "</b><br>" + tt.MoTa+ "<div style=\"text-align: right\"> .......<a class=\"nonunderlink\" href=\"Page_NewsDetail.aspx?Id=" + tt.Ma + "\">Chi tiết</a>....</div>"
            + "</p>"
            + "</div>";
            news.Controls.Add(divitem);
        }
        */
    }
}
